package com.whfc.base.dao;

import com.whfc.base.dto.AppBannerDTO;
import com.whfc.base.entity.AppBanner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020/7/4 10:42
 */

public interface AppBannerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppBanner record);

    int insertSelective(AppBanner record);

    AppBanner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppBanner record);

    int updateByPrimaryKey(AppBanner record);

    /**
     * 获取 banner列表
     *
     * @param deptId 组织机构ID
     * @return banner列表
     */
    List<AppBannerDTO> selectBannerDTOList(@Param("deptId") Integer deptId);
}